package com.yicong.ants.bean.me;

import com.cchao.simplelib.util.StringHelper;

/**
 * 我推荐的用户的信息
 *
 * @author cch
 * @version 2020/2/3
 */
public class MyRecSummary {
    String parent_id;
    int parent_have_nice_number;
    String parent_nickname;
    String parent_level;
    String parent_mobile;
    String parent_wx_account;
    String parent_mobile_mix;
    String parent_avatar;
    String parent_user_status;

    String direct_amount;
    String direct_have_auth;
    String direct_no_auth;

    String indirect_amount;
    String indirect_have_auth;
    String indirect_no_auth;

    String team_total_contribution;
    int team_total_children;
    String team_total_auth;
    String my_total_contribution;
    String my_today_contribution;
    String team_children1_contribution;
    String team_children2_contribution;

    public MyRecSummary() {
    }

    public String getParent_mobile_mix() {
        try {
            return parent_mobile.substring(0, 3) + "****" + parent_mobile.substring(7);
        } catch (Exception ignore) {
            return "";
        }
    }

    public String getParent_wx_account() {
        if (StringHelper.isEmpty(parent_wx_account)) {
            return "暂未填写";
        }
        return parent_wx_account;
    }

    public int getParent_have_nice_number() {
        if (StringHelper.isEmpty(parent_id)) {
            return 0;
        }
        return parent_id.length() < 8 ? 1 : 0;
    }

    public String getParent_id() {
        return this.parent_id;
    }

    public String getParent_nickname() {
        return this.parent_nickname;
    }

    public String getParent_level() {
        return this.parent_level;
    }

    public String getParent_mobile() {
        return this.parent_mobile;
    }

    public String getParent_avatar() {
        return this.parent_avatar;
    }

    public String getParent_user_status() {
        return this.parent_user_status;
    }

    public String getDirect_amount() {
        return this.direct_amount;
    }

    public String getDirect_have_auth() {
        return this.direct_have_auth;
    }

    public String getDirect_no_auth() {
        return this.direct_no_auth;
    }

    public String getIndirect_amount() {
        return this.indirect_amount;
    }

    public String getIndirect_have_auth() {
        return this.indirect_have_auth;
    }

    public String getIndirect_no_auth() {
        return this.indirect_no_auth;
    }

    public String getTeam_total_contribution() {
        return this.team_total_contribution;
    }

    public int getTeam_total_children() {
        return this.team_total_children;
    }

    public String getTeam_total_auth() {
        return this.team_total_auth;
    }

    public String getMy_total_contribution() {
        return this.my_total_contribution;
    }

    public String getMy_today_contribution() {
        return this.my_today_contribution;
    }

    public String getTeam_children1_contribution() {
        return this.team_children1_contribution;
    }

    public String getTeam_children2_contribution() {
        return this.team_children2_contribution;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public void setParent_have_nice_number(int parent_have_nice_number) {
        this.parent_have_nice_number = parent_have_nice_number;
    }

    public void setParent_nickname(String parent_nickname) {
        this.parent_nickname = parent_nickname;
    }

    public void setParent_level(String parent_level) {
        this.parent_level = parent_level;
    }

    public void setParent_mobile(String parent_mobile) {
        this.parent_mobile = parent_mobile;
    }

    public void setParent_wx_account(String parent_wx_account) {
        this.parent_wx_account = parent_wx_account;
    }

    public void setParent_mobile_mix(String parent_mobile_mix) {
        this.parent_mobile_mix = parent_mobile_mix;
    }

    public void setParent_avatar(String parent_avatar) {
        this.parent_avatar = parent_avatar;
    }

    public void setParent_user_status(String parent_user_status) {
        this.parent_user_status = parent_user_status;
    }

    public void setDirect_amount(String direct_amount) {
        this.direct_amount = direct_amount;
    }

    public void setDirect_have_auth(String direct_have_auth) {
        this.direct_have_auth = direct_have_auth;
    }

    public void setDirect_no_auth(String direct_no_auth) {
        this.direct_no_auth = direct_no_auth;
    }

    public void setIndirect_amount(String indirect_amount) {
        this.indirect_amount = indirect_amount;
    }

    public void setIndirect_have_auth(String indirect_have_auth) {
        this.indirect_have_auth = indirect_have_auth;
    }

    public void setIndirect_no_auth(String indirect_no_auth) {
        this.indirect_no_auth = indirect_no_auth;
    }

    public void setTeam_total_contribution(String team_total_contribution) {
        this.team_total_contribution = team_total_contribution;
    }

    public void setTeam_total_children(int team_total_children) {
        this.team_total_children = team_total_children;
    }

    public void setTeam_total_auth(String team_total_auth) {
        this.team_total_auth = team_total_auth;
    }

    public void setMy_total_contribution(String my_total_contribution) {
        this.my_total_contribution = my_total_contribution;
    }

    public void setMy_today_contribution(String my_today_contribution) {
        this.my_today_contribution = my_today_contribution;
    }

    public void setTeam_children1_contribution(String team_children1_contribution) {
        this.team_children1_contribution = team_children1_contribution;
    }

    public void setTeam_children2_contribution(String team_children2_contribution) {
        this.team_children2_contribution = team_children2_contribution;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof MyRecSummary)) return false;
        final MyRecSummary other = (MyRecSummary) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$parent_id = this.getParent_id();
        final Object other$parent_id = other.getParent_id();
        if (this$parent_id == null ? other$parent_id != null : !this$parent_id.equals(other$parent_id))
            return false;
        if (this.getParent_have_nice_number() != other.getParent_have_nice_number()) return false;
        final Object this$parent_nickname = this.getParent_nickname();
        final Object other$parent_nickname = other.getParent_nickname();
        if (this$parent_nickname == null ? other$parent_nickname != null : !this$parent_nickname.equals(other$parent_nickname))
            return false;
        final Object this$parent_level = this.getParent_level();
        final Object other$parent_level = other.getParent_level();
        if (this$parent_level == null ? other$parent_level != null : !this$parent_level.equals(other$parent_level))
            return false;
        final Object this$parent_mobile = this.getParent_mobile();
        final Object other$parent_mobile = other.getParent_mobile();
        if (this$parent_mobile == null ? other$parent_mobile != null : !this$parent_mobile.equals(other$parent_mobile))
            return false;
        final Object this$parent_wx_account = this.getParent_wx_account();
        final Object other$parent_wx_account = other.getParent_wx_account();
        if (this$parent_wx_account == null ? other$parent_wx_account != null : !this$parent_wx_account.equals(other$parent_wx_account))
            return false;
        final Object this$parent_mobile_mix = this.getParent_mobile_mix();
        final Object other$parent_mobile_mix = other.getParent_mobile_mix();
        if (this$parent_mobile_mix == null ? other$parent_mobile_mix != null : !this$parent_mobile_mix.equals(other$parent_mobile_mix))
            return false;
        final Object this$parent_avatar = this.getParent_avatar();
        final Object other$parent_avatar = other.getParent_avatar();
        if (this$parent_avatar == null ? other$parent_avatar != null : !this$parent_avatar.equals(other$parent_avatar))
            return false;
        final Object this$parent_user_status = this.getParent_user_status();
        final Object other$parent_user_status = other.getParent_user_status();
        if (this$parent_user_status == null ? other$parent_user_status != null : !this$parent_user_status.equals(other$parent_user_status))
            return false;
        final Object this$direct_amount = this.getDirect_amount();
        final Object other$direct_amount = other.getDirect_amount();
        if (this$direct_amount == null ? other$direct_amount != null : !this$direct_amount.equals(other$direct_amount))
            return false;
        final Object this$direct_have_auth = this.getDirect_have_auth();
        final Object other$direct_have_auth = other.getDirect_have_auth();
        if (this$direct_have_auth == null ? other$direct_have_auth != null : !this$direct_have_auth.equals(other$direct_have_auth))
            return false;
        final Object this$direct_no_auth = this.getDirect_no_auth();
        final Object other$direct_no_auth = other.getDirect_no_auth();
        if (this$direct_no_auth == null ? other$direct_no_auth != null : !this$direct_no_auth.equals(other$direct_no_auth))
            return false;
        final Object this$indirect_amount = this.getIndirect_amount();
        final Object other$indirect_amount = other.getIndirect_amount();
        if (this$indirect_amount == null ? other$indirect_amount != null : !this$indirect_amount.equals(other$indirect_amount))
            return false;
        final Object this$indirect_have_auth = this.getIndirect_have_auth();
        final Object other$indirect_have_auth = other.getIndirect_have_auth();
        if (this$indirect_have_auth == null ? other$indirect_have_auth != null : !this$indirect_have_auth.equals(other$indirect_have_auth))
            return false;
        final Object this$indirect_no_auth = this.getIndirect_no_auth();
        final Object other$indirect_no_auth = other.getIndirect_no_auth();
        if (this$indirect_no_auth == null ? other$indirect_no_auth != null : !this$indirect_no_auth.equals(other$indirect_no_auth))
            return false;
        final Object this$team_total_contribution = this.getTeam_total_contribution();
        final Object other$team_total_contribution = other.getTeam_total_contribution();
        if (this$team_total_contribution == null ? other$team_total_contribution != null : !this$team_total_contribution.equals(other$team_total_contribution))
            return false;
        if (this.getTeam_total_children() != other.getTeam_total_children()) return false;
        final Object this$team_total_auth = this.getTeam_total_auth();
        final Object other$team_total_auth = other.getTeam_total_auth();
        if (this$team_total_auth == null ? other$team_total_auth != null : !this$team_total_auth.equals(other$team_total_auth))
            return false;
        final Object this$my_total_contribution = this.getMy_total_contribution();
        final Object other$my_total_contribution = other.getMy_total_contribution();
        if (this$my_total_contribution == null ? other$my_total_contribution != null : !this$my_total_contribution.equals(other$my_total_contribution))
            return false;
        final Object this$my_today_contribution = this.getMy_today_contribution();
        final Object other$my_today_contribution = other.getMy_today_contribution();
        if (this$my_today_contribution == null ? other$my_today_contribution != null : !this$my_today_contribution.equals(other$my_today_contribution))
            return false;
        final Object this$team_children1_contribution = this.getTeam_children1_contribution();
        final Object other$team_children1_contribution = other.getTeam_children1_contribution();
        if (this$team_children1_contribution == null ? other$team_children1_contribution != null : !this$team_children1_contribution.equals(other$team_children1_contribution))
            return false;
        final Object this$team_children2_contribution = this.getTeam_children2_contribution();
        final Object other$team_children2_contribution = other.getTeam_children2_contribution();
        if (this$team_children2_contribution == null ? other$team_children2_contribution != null : !this$team_children2_contribution.equals(other$team_children2_contribution))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof MyRecSummary;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $parent_id = this.getParent_id();
        result = result * PRIME + ($parent_id == null ? 43 : $parent_id.hashCode());
        result = result * PRIME + this.getParent_have_nice_number();
        final Object $parent_nickname = this.getParent_nickname();
        result = result * PRIME + ($parent_nickname == null ? 43 : $parent_nickname.hashCode());
        final Object $parent_level = this.getParent_level();
        result = result * PRIME + ($parent_level == null ? 43 : $parent_level.hashCode());
        final Object $parent_mobile = this.getParent_mobile();
        result = result * PRIME + ($parent_mobile == null ? 43 : $parent_mobile.hashCode());
        final Object $parent_wx_account = this.getParent_wx_account();
        result = result * PRIME + ($parent_wx_account == null ? 43 : $parent_wx_account.hashCode());
        final Object $parent_mobile_mix = this.getParent_mobile_mix();
        result = result * PRIME + ($parent_mobile_mix == null ? 43 : $parent_mobile_mix.hashCode());
        final Object $parent_avatar = this.getParent_avatar();
        result = result * PRIME + ($parent_avatar == null ? 43 : $parent_avatar.hashCode());
        final Object $parent_user_status = this.getParent_user_status();
        result = result * PRIME + ($parent_user_status == null ? 43 : $parent_user_status.hashCode());
        final Object $direct_amount = this.getDirect_amount();
        result = result * PRIME + ($direct_amount == null ? 43 : $direct_amount.hashCode());
        final Object $direct_have_auth = this.getDirect_have_auth();
        result = result * PRIME + ($direct_have_auth == null ? 43 : $direct_have_auth.hashCode());
        final Object $direct_no_auth = this.getDirect_no_auth();
        result = result * PRIME + ($direct_no_auth == null ? 43 : $direct_no_auth.hashCode());
        final Object $indirect_amount = this.getIndirect_amount();
        result = result * PRIME + ($indirect_amount == null ? 43 : $indirect_amount.hashCode());
        final Object $indirect_have_auth = this.getIndirect_have_auth();
        result = result * PRIME + ($indirect_have_auth == null ? 43 : $indirect_have_auth.hashCode());
        final Object $indirect_no_auth = this.getIndirect_no_auth();
        result = result * PRIME + ($indirect_no_auth == null ? 43 : $indirect_no_auth.hashCode());
        final Object $team_total_contribution = this.getTeam_total_contribution();
        result = result * PRIME + ($team_total_contribution == null ? 43 : $team_total_contribution.hashCode());
        result = result * PRIME + this.getTeam_total_children();
        final Object $team_total_auth = this.getTeam_total_auth();
        result = result * PRIME + ($team_total_auth == null ? 43 : $team_total_auth.hashCode());
        final Object $my_total_contribution = this.getMy_total_contribution();
        result = result * PRIME + ($my_total_contribution == null ? 43 : $my_total_contribution.hashCode());
        final Object $my_today_contribution = this.getMy_today_contribution();
        result = result * PRIME + ($my_today_contribution == null ? 43 : $my_today_contribution.hashCode());
        final Object $team_children1_contribution = this.getTeam_children1_contribution();
        result = result * PRIME + ($team_children1_contribution == null ? 43 : $team_children1_contribution.hashCode());
        final Object $team_children2_contribution = this.getTeam_children2_contribution();
        result = result * PRIME + ($team_children2_contribution == null ? 43 : $team_children2_contribution.hashCode());
        return result;
    }

    public String toString() {
        return "MyRecSummary(parent_id=" + this.getParent_id() + ", parent_have_nice_number=" + this.getParent_have_nice_number() + ", parent_nickname=" + this.getParent_nickname() + ", parent_level=" + this.getParent_level() + ", parent_mobile=" + this.getParent_mobile() + ", parent_wx_account=" + this.getParent_wx_account() + ", parent_mobile_mix=" + this.getParent_mobile_mix() + ", parent_avatar=" + this.getParent_avatar() + ", parent_user_status=" + this.getParent_user_status() + ", direct_amount=" + this.getDirect_amount() + ", direct_have_auth=" + this.getDirect_have_auth() + ", direct_no_auth=" + this.getDirect_no_auth() + ", indirect_amount=" + this.getIndirect_amount() + ", indirect_have_auth=" + this.getIndirect_have_auth() + ", indirect_no_auth=" + this.getIndirect_no_auth() + ", team_total_contribution=" + this.getTeam_total_contribution() + ", team_total_children=" + this.getTeam_total_children() + ", team_total_auth=" + this.getTeam_total_auth() + ", my_total_contribution=" + this.getMy_total_contribution() + ", my_today_contribution=" + this.getMy_today_contribution() + ", team_children1_contribution=" + this.getTeam_children1_contribution() + ", team_children2_contribution=" + this.getTeam_children2_contribution() + ")";
    }
}
